import { Controller } from '@nestjs/common';
import { MailService } from './mail.service';
import { MailerService } from '@nestjs-modules/mailer';

@Controller('mail')
export class MailController {
  constructor(
    private readonly mailService: MailService,
    private readonly mailerService: MailerService,
  ) {}

  // @Post('test')
  // async sendMail(@Body('to') to: string, @Body('text') text: string) {
  //   await this.mailService.sendMail(to, text);
  // }
}
